#ifndef UART_3_H
#define UART_3_H

#include "common.h"
#include "stm32f10x.h"

extern void Uart3_initWithConfig(INT32U baudrate, INT8U databits, INT8U parity, INT8U stopbits);
extern void Uart3_initModule(void);
extern INT32U Uart3_writeByte(INT8U data);
extern INT32U Uart3_writeBytes(INT8U *data, INT32U n_bytes);
extern INT32U Uart3_writeString(INT8U *data_string);
extern void USART3_IRQHandler(void);
extern volatile INT32U Uart3_getRxRingbufferData(INT8U* data, INT32U length);
extern volatile INT32U Uart3_clearRxRingbufferData(void);
extern volatile INT32U Uart3_getRxRingbufferN2RLength(void);

#endif